Skip to content

Instantly share code, notes, and snippets.

@Jak-o-Shadows
Last active January 14, 2021 07:19
Show Gist options
  • Save Jak-o-Shadows/d0ab7ae9c8af76f21b08a5f9fe58d247 to your computer and use it in GitHub Desktop.
Save Jak-o-Shadows/d0ab7ae9c8af76f21b08a5f9fe58d247 to your computer and use it in GitHub Desktop.
import os
import pandas as pd
import matplotlib.pyplot as plt
if __name__ == "__main__":
path_data = "path/to/your/data.csv"
df = pd.read_csv(path_data)
fig, ax = plt.subplots()
ax.plot(df["x_column"], df["y_column"], 'o-')
ax.set_xscale("log", basex=10)
ax.grid(True)
ax.set_xlabel("asdfasf")
ax.set_ylabel("asdf")
ax.set_title("asdfsadfaf")
fig.savefig("test.png", dpi=300, bbox_inches="tight")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment